
'use strict';

/**
	Part of Zombie Navigator
	Copyright © 2015  Zombie Navigator Developers
	
	@file
	@license AGPL-3.0+
*/


/* Used modules */
const _modSandbox = require('../platform/sandbox');
const _modBrowserWindow = require('../platform/browser-window');


/**
	@public
*/
const stopAll = () => {
	// XXX: Unreliability due to being asychronous
	_modSandbox.unloadAllSandboxes();
	_modBrowserWindow.closeAllWindows();
};


/* Exports */
exports.stopAll = stopAll;


// vim: ts=4 noet ai

